package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * author： ccm
 * time： 2017/6/13.
 * description：
 */

public class PassengerListBean {

    /**
     * code : 2000
     * data : {"passengers":[{"sid":"45c6caf5a16b4c08a80f9f2981744d22","name":"測試","gender":"0","cardType":1,"idcard":"12842684688","passportNumber":"","birthday":null,"nationality":"","passportExpiryDate":null,"passportIssuePlace":"","accountSid":"acc1466044931968Q8YB","cellphone":"18721626075","status":"1"}]}
     * message : 获取成功
     */

    private String code;
    private DataBean data;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        private List<PassengersBean> passengers;

        public List<PassengersBean> getPassengers() {
            return passengers;
        }

        public void setPassengers(List<PassengersBean> passengers) {
            this.passengers = passengers;
        }

        public static class PassengersBean implements Parcelable {
            @Override
            public String toString() {
                return "PassengersBean{" +
                        "sid='" + sid + '\'' +
                        ", name='" + name + '\'' +
                        ", gender='" + gender + '\'' +
                        ", cardType='" + cardType + '\'' +
                        ", idcard='" + idcard + '\'' +
                        ", passportNumber='" + passportNumber + '\'' +
                        ", birthday='" + birthday + '\'' +
                        ", nationality='" + nationality + '\'' +
                        ", passportExpiryDate='" + passportExpiryDate + '\'' +
                        ", passportIssuePlace='" + passportIssuePlace + '\'' +
                        ", accountSid='" + accountSid + '\'' +
                        ", cellphone='" + cellphone + '\'' +
                        ", status='" + status + '\'' +
                        '}';
            }

            /**
             * sid : 45c6caf5a16b4c08a80f9f2981744d22
             * name : 測試
             * gender : 0
             * cardType : 1
             * idcard : 12842684688
             * passportNumber :
             * birthday : null
             * nationality :
             * passportExpiryDate : null
             * passportIssuePlace :
             * accountSid : acc1466044931968Q8YB
             * cellphone : 18721626075
             * status : 1
             */

            private String sid;
            private String name;
            private String gender;
            private String cardType;
            private String idcard;
            private String passportNumber;
            private String birthday;
            private String nationality;
            private String passportExpiryDate;
            private String passportIssuePlace;
            private String accountSid;
            private String cellphone;
            private String status;

            public String getSid() {
                return sid;
            }

            public void setSid(String sid) {
                this.sid = sid;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getGender() {
                return gender;
            }

            public void setGender(String gender) {
                this.gender = gender;
            }

            public String getCardType() {
                return cardType;
            }

            public void setCardType(String cardType) {
                this.cardType = cardType;
            }

            public String getIdcard() {
                return idcard;
            }

            public void setIdcard(String idcard) {
                this.idcard = idcard;
            }

            public String getPassportNumber() {
                return passportNumber;
            }

            public void setPassportNumber(String passportNumber) {
                this.passportNumber = passportNumber;
            }

            public String getBirthday() {
                return birthday;
            }

            public void setBirthday(String birthday) {
                this.birthday = birthday;
            }

            public String getNationality() {
                return nationality;
            }

            public void setNationality(String nationality) {
                this.nationality = nationality;
            }

            public String getPassportExpiryDate() {
                return passportExpiryDate;
            }

            public void setPassportExpiryDate(String passportExpiryDate) {
                this.passportExpiryDate = passportExpiryDate;
            }

            public String getPassportIssuePlace() {
                return passportIssuePlace;
            }

            public void setPassportIssuePlace(String passportIssuePlace) {
                this.passportIssuePlace = passportIssuePlace;
            }

            public String getAccountSid() {
                return accountSid;
            }

            public void setAccountSid(String accountSid) {
                this.accountSid = accountSid;
            }

            public String getCellphone() {
                return cellphone;
            }

            public void setCellphone(String cellphone) {
                this.cellphone = cellphone;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.sid);
                dest.writeString(this.name);
                dest.writeString(this.gender);
                dest.writeString(this.cardType);
                dest.writeString(this.idcard);
                dest.writeString(this.passportNumber);
                dest.writeString(this.birthday);
                dest.writeString(this.nationality);
                dest.writeString(this.passportExpiryDate);
                dest.writeString(this.passportIssuePlace);
                dest.writeString(this.accountSid);
                dest.writeString(this.cellphone);
                dest.writeString(this.status);
            }

            public PassengersBean() {
            }

            protected PassengersBean(Parcel in) {
                this.sid = in.readString();
                this.name = in.readString();
                this.gender = in.readString();
                this.cardType = in.readString();
                this.idcard = in.readString();
                this.passportNumber = in.readString();
                this.birthday = in.readString();
                this.nationality = in.readString();
                this.passportExpiryDate = in.readString();
                this.passportIssuePlace = in.readString();
                this.accountSid = in.readString();
                this.cellphone = in.readString();
                this.status = in.readString();
            }

            public static final Parcelable.Creator<PassengersBean> CREATOR = new Parcelable.Creator<PassengersBean>() {
                @Override
                public PassengersBean createFromParcel(Parcel source) {
                    return new PassengersBean(source);
                }

                @Override
                public PassengersBean[] newArray(int size) {
                    return new PassengersBean[size];
                }
            };
        }
    }
}
